
cc.Class({
    extends: cc.Component,

    properties: {
        
    },

    start () {
        window.mm = this.node
    },
    
    btn_layout_0(){
        this.node.getChildByName('testA').getComponent('prefab-ex').setTemplate(0)
    },
    
    btn_layout_1(){
        this.node.getChildByName('testA').getComponent('prefab-ex').setTemplate(1)
    },
    
    btn_layout_2(){
        this.node.getChildByName('testA').getComponent('prefab-ex').setTemplate(2)
    },
});
